From 15b2d4ff61d0339385edd8cc67bf7579fcc2af08 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Fri, 27 Jun 2025 01:25:48 +0000 Subject: (김준회) MDG SOAP 수신 유틸리티 및 API 엔드포인트, 스키마 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/auth/[...nextauth]/saml/provider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/api/auth/[...nextauth]/saml/provider.ts') diff --git a/app/api/auth/[...nextauth]/saml/provider.ts b/app/api/auth/[...nextauth]/saml/provider.ts index 8486a690..dfe3d830 100644 --- a/app/api/auth/[...nextauth]/saml/provider.ts +++ b/app/api/auth/[...nextauth]/saml/provider.ts @@ -228,6 +228,7 @@ export async function authenticateSAMLUser(userData: SAMLUser) { } } +// TODO: SecuritySetting 함수에서 가져올 것 // NextAuth JWT 토큰 생성 헬퍼 export async function createNextAuthToken(user: User): Promise { const token = { @@ -239,7 +240,7 @@ export async function createNextAuthToken(user: User): Promise { domain: user.domain, imageUrl: user.imageUrl, iat: Math.floor(Date.now() / 1000), - exp: Math.floor(Date.now() / 1000) + (30 * 24 * 60 * 60) // 30일 + exp: Math.floor(Date.now() / 1000) + (480 * 60) // 480분 }; const secret = process.env.NEXTAUTH_SECRET!; @@ -256,4 +257,3 @@ export function getSessionCookieName(): string { ? '__Secure-next-auth.session-token' : 'next-auth.session-token'; } - \ No newline at end of file -- cgit v1.2.3